﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="ly.Web.QianTai.Index" %>




<%--加入缓存--%>
<%@ OutputCache Duration="20" VaryByParam="none" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>ly分享汇主页</title>
    <link href="css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
    <link href="font-awesome/css/font-awesome.css?v=4.3.0" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/style.css?v=2.2.0" rel="stylesheet">
    <link href="js/plugins/fancybox/jquery.fancybox.css" rel="stylesheet">
</head>
<body class="top-navigation">
    <form id="form1" runat="server">
    <div id="wrapper">
        <div id="page-wrapper" class="gray-bg">
            <div class="row border-bottom white-bg">
                <nav class="navbar navbar-static-top" role="navigation">
                    <div class="navbar-header">
                        <button aria-controls="navbar" aria-expanded="false" data-target="#navbar" data-toggle="collapse" class="navbar-toggle collapsed" type="button">
                            <i class="fa fa-reorder"></i>
                        </button>
                        <a href="#" class="navbar-brand">LY分享汇</a>
                    </div>
                    <div class="navbar-collapse collapse" id="navbar">
                        <ul class="nav navbar-nav">
                            <li class="active">
                                <!--<a aria-expanded="false" role="button" href="layouts.html"> 返回布局页面</a>-->
                            </li>
                            <li class="dropdown">
                                <a aria-expanded="true" role="button" href="index.aspx" class="dropdown-toggle" data-toggle="dropdown"> 主页</a>
                            </li>
                            <li class="dropdown">
                                <a aria-expanded="false" role="button" href="#" class="dropdown-toggle" data-toggle="dropdown">作品<span class="caret"></span></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li><a href="ZuoPinZuiXin.aspx">查看作品</a>
                                    </li>
                                    <li><a href="addWork.aspx">添加新作品</a>
                                    </li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a aria-expanded="false" role="button" href="index_4.html#" class="dropdown-toggle" data-toggle="dropdown"> 活动<span class="caret"></span></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li><a href="AllActivity.aspx">查看活动</a>
                                    </li>
                                    <li><a href="addActivity.aspx">新建活动</a>
                                    </li>
                                </ul>
                            </li>
                            <li class="dropdown">
                                <a aria-expanded="false" role="button" href="index_4.html#" class="dropdown-toggle" data-toggle="dropdown">留言板<span class="caret"></span></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li><a href="LiuYanBan.aspx?workid=28">留言板</a>
                                    </li>
                                </ul>
                            </li>

                            <li class="dropdown">
                                <a aria-expanded="false" role="button" href="news.aspx" class="dropdown-toggle" data-toggle="dropdown">新闻中心<span class="caret"></span></a>
                                <ul role="menu" class="dropdown-menu">
                                    <li><a href="newslist.aspx">新闻中心</a>
                                    </li>
                                </ul>
                            </li>


                        </ul>
                        <ul class="nav navbar-top-links navbar-right">
                            <li>
                              <asp:Panel ID="pnlLogin" runat="server">
                                <div class="login"> <a href="../Admin/Login.aspx">登录</a><a href="register.aspx">|注册</a></div>
                                </asp:Panel>
                              <asp:Panel ID="pnlLoginOut" runat="server" Visible="false">
                                <div class="login">
                                  <asp:Label ID="lblUserName" runat="server" Text="Label"></asp:Label>
                                  <a href="../Admin/Login.aspx">|退出</a></div>
                                </asp:Panel>
                            </li>
                        </ul>
                    </div>
                </nav>
            </div>

            
            
            






            <div class="wrapper wrapper-content">
                <!--<div class="container">-->
                	
                	<h3>最新作品(new fourth)</h3>
                                <asp:DataList ID="dlist" runat="server" RepeatDirection="Horizontal" RepeatColumns="4">
                                <ItemTemplate>
                    <div class="row">	
                        <div class="col-md-12">
                            <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                    <span class="label label-success pull-right"><%#Eval("UserName")%></span>
                                    <h5>作者</h5>
                               <!-- <div class="ibox-tools"   >        
                               <div >
                                    <a class="collapse-link">
                                        <i class="fa fa-chevron-up"></i>
                                    </a>
                                </div>
                                      -->
                            </div>
                            <div class="ibox-content">
                                     <a href="discussWork.aspx?workid=<%#Eval("WorkID")%>"><img  width = "250px" height="250px" src="../files/<%#Eval("WorkPicture")%>" alt="" ></a>
                                    <h5>题目:<%#Eval("WorkName")%></h5>
                            </div>
                            </div>
                       </div>
                       </div>
                                </ItemTemplate>
                                </asp:DataList>
                   <h3>推荐作品</h3>
                                <asp:DataList ID="DataList1" runat="server" RepeatDirection="Horizontal" RepeatColumns="4">
                                <ItemTemplate>
                    <div class="row">	
                        <div class="col-md-12">
                            <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                    <span class="label label-success pull-right"><%#Eval("UserName")%></span>
                                    <h5>作者</h5>

                            </div>
                            <div class="ibox-content">
                                     <a href="discussWork.aspx?workid=<%#Eval("WorkID")%>"><img width = "250px" height="250px" src="../files/<%#Eval("WorkPicture")%>" alt="" ></a>
                                    <h5>题目:<%#Eval("WorkName")%></h5>
                            </div>
                            </div>
                       </div>
                       </div>
                                </ItemTemplate>
                                </asp:DataList>

                                                                            <div class="sidebard-panel">
                <div>
                    <h4>新闻中心 <span class="badge badge-info pull-right"></span></h4>
                            <div class="feed-element">
                            <asp:Repeater ID="rptXinWen" runat="server">
                            <ItemTemplate>
                                <div class="media-body">
<%--                                    <a href="newscontent.aspx?nid=<%#Eval("news_id") %>" class="pull-left">
                                       <%#Eval("news_content")%> 
                                    </a>--%>
                                <li><a href='newscontent.aspx?nid=<%#Eval("news_id") %>' target="_blank" title='<%#Eval("news_name") %>'><%#Eval("news_name") %></a></li>
                                <small class="text-muted">时间：<%#Eval("news_createtime") %></small
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                            </div>
                        </div>
                    </div>

                </div>
                




            </div>
            </div>

        </div>


    </form>
    <script src="js/jquery-2.1.1.min.js"></script>
    <script src="js/bootstrap.min.js?v=3.4.0"></script>
    <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>

    <!-- Custom and plugin javascript -->
    <script src="js/hplus.js?v=2.2.0"></script>
    <script src="js/plugins/pace/pace.min.js"></script>

    <!-- Flot -->
    <script src="js/plugins/flot/jquery.flot.js"></script>
    <script src="js/plugins/flot/jquery.flot.tooltip.min.js"></script>
    <script src="js/plugins/flot/jquery.flot.resize.js"></script>

    <!-- ChartJS-->
    <script src="js/plugins/chartJs/Chart.min.js"></script>

    <!-- Peity -->
    <script src="js/plugins/peity/jquery.peity.min.js"></script>

    <!-- Peity demo -->
    <script src="js/demo/peity-demo.js"></script>
    <!-- Fancy box -->
    <script src="js/plugins/fancybox/jquery.fancybox.js"></script>

    <script>

        $(document).ready(function () {
            $('.fancybox').fancybox({
                openEffect: 'none',
                closeEffect: 'none'
            });
        });
    </script>

</body>
</html>
